/**
 * 
 */
package com.et114.core.common;


/*
 * @author guanhw
 */
public class Page {
	//common
	private int pageSize = 10;  // 
	private int pageNum = 1;  // 
	
	private int calculate ;   //MS SQLSERVER
	
	private int firstRow ;  //ORACLE
	private int lastRow ;   //ORACLE
	
	//ectable 
	private String tableId ="ec";
	private String ec_i ; 
	private int totalRows ; 

	private String filter = null ;
	private String sort = null;

	private EctableConverts econverts = new EctableConverts (  );
	
	public int getPageSize ( ) {
		return pageSize;
	}
	public void setPageSize ( int pageSize ) {
		this.pageSize = pageSize;
	}
	public int getPageNum ( ) {
		return pageNum;
	}
	public void setPageNum ( int pageNum ) {
		this.pageNum = pageNum;
	}

	public int getFirstRow ( ) {
		return firstRow;
	}
	public void setFirstRow ( int firstRow ) {
		this.firstRow = firstRow;
	}
	public int getLastRow ( ) {
		return lastRow;
	}
	public void setLastRow ( int lastRow ) {
		this.lastRow = lastRow;
	}
	public int getTotalRows ( ) {
		return totalRows;
	}
	public void setTotalRows ( int totalRows ) {
		this.totalRows = totalRows;
	}
	public String getFilter ( ) {
		return filter;
	}
	public void setFilter ( String filter ) {
		this.filter = filter;
	}
	public String getSort ( ) {
		return sort;
	}
	public void setSort ( String sort ) {
		this.sort = sort;
	}
	public int getCalculate ( ) {
		return calculate;
	}
	public void setCalculate ( int calculate ) {
		this.calculate = calculate;
	}
	public String getEc_i ( ) {
		return ec_i;
	}

	public void setEc_i ( String ec_i ) {
		this.ec_i = ec_i;
		this.tableId = ec_i;
	}

	public String getTableId ( ) {
		return ec_i != null ? this.ec_i : tableId ;
	}

	public void setTableId ( String tableId ) {
		this.tableId = tableId;
		this.ec_i = tableId ;
	}
	public EctableConverts getEconverts ( ) {
		return econverts;
	}
	public void setEconverts ( EctableConverts econverts ) {
		this.econverts = econverts;
	}
}
